<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_DOM操作1</title>
</head>
<body>
    <button onclick="AddMoney()">点击变富有</button>
    <hr>
    <script>
        function AddMoney() {
            let emg = document.createElement("img");
            emg.src = "img/money.jpg";
            emg.width = 200;
            let bodye = document.querySelector('body');
            bodye.append(emg);
        }
    </script>
</body>

</html>